import { ExtractPropTypes } from 'vue'
import { Align, Aligns } from '../../types/tuniao-ui'

/**
 * props参数
 */
export const collapseItemProps = {
  /** 对齐方式 */
  align: {
    type: String,
    default: '',
    validator: (value: Align | '') => {
      return value === '' || Aligns.includes(value)
    }
  },
  /** 禁止展开 */
  disabled: {
    type: Boolean,
    default: false
  },
  /** index组件标识 */
  index: {
    type: [String, Number],
    default: ''
  }
}
export type CollapseItemProps = ExtractPropTypes<typeof collapseItemProps>
